#include <stdio.h>

int main(void)
{
    //Declarar variables
    char v1 = 'a';
    int v2 = 321;
    double v3 = 99.123456789;
    double v4 = 8.9e-6;

    //Imprimir en distintos formatos
    printf("v1='%c'\n", v1);
    printf("v1=%d\n", v1);
    printf("v2='%c'\n", v2);
    printf("v2=%d\n", v2);
    printf("v3=%.6f\n", v3);
    printf("v3=%.3f\n", v3);
    printf("v3=%.6f\n", v3);
    printf("v3=%.6f\n", v3);
    //printf("v3=%d\n", v3);      //Undefined behaviour
    printf("v3=%d\n", *(int *) &v3);      //We are not taking all the bits of v3.
    printf("v3=%e\n", v3);
    printf("v4=%f\n", v4);
    printf("v4=%.5f\n", v4);
    printf("v4=%.10f\n", v4);
    printf("v4=%e\n", v4);
}
